package chapter_IO_Serializable;

import java.io.*;

public class SerializableObj {
	public static void main(String[] args) throws IOException{
		Student stu= new Student("安娜",30,"女性");
		ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("F:\\stu.txt"));
		
		oos.writeObject(stu);
		oos.close();
	}

}
